<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改用户信息')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-staff-edit" th:object="${staff}">
		<input name="id" th:field="*{id}" type="hidden">
		<div class="form-group">
			<label class="col-sm-3 control-label">园区id：</label>
			<div class="col-sm-8">
				<input name="areaId" th:field="*{areaId}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">头像：</label>
			<div class="col-sm-8">
				<input name="headImgUrl" th:field="*{headImgUrl}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">手机号唯一：</label>
			<div class="col-sm-8">
				<input name="mobile" th:field="*{mobile}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">用户名：</label>
			<div class="col-sm-8">
				<input name="username" th:field="*{username}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">真实姓名：</label>
			<div class="col-sm-8">
				<input name="realName" th:field="*{realName}" class="form-control" type="text">
			</div>
		</div>
		<div class="form-group">
				<label class="col-sm-3 control-label">性别：</label>
				<div class="col-sm-8">
					<select id="gender" name="gender" class="form-control m-b" th:field="*{gender}">
						<option value="0">女</option>
						<option value="1">男</option>
					</select>
				</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">是否离职：</label>
			<div class="col-sm-8">
				<select id="status" name="status" class="form-control m-b" th:field="*{status}">
					<option value="0">否</option>
					<option value="1">是</option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">备注：</label>
			<div class="col-sm-8">
				<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
	var prefix = ctx + "sso/staff";
	$("#form-staff-edit").validate({
		focusCleanup: true
	});

	var isClick = true;
	function submitHandler() {
		if ($.validate.form() && isClick) {
			isClick = false;
			$.operate.save(prefix + "/edit", $('#form-staff-edit').serialize());
		}
	}
</script>
</body>